<template>
	<view class="page">
		<view class="module">
			<view class="title">—— 鸽笼数据 ——</view>
			<view class="row">
				<view class="data_item">
					<view class="item_title">成鸽</view>
					<view class="item_data">2只</view>
				</view>
				<view class="data_item">
					<view class="item_title">雏鸽</view>
					<view class="item_data">2只</view>
				</view>
				<view class="data_item">
					<view class="item_title">死病雏</view>
					<view class="item_data">1只</view>
				</view>
			</view>
			<view class="row">
				<view class="data_item">
					<view class="item_title">未受精卵</view>
					<view class="item_data">0个</view>
				</view>
				<view class="data_item">
					<view class="item_title">未孵化卵</view>
					<view class="item_data">0个</view>
				</view>
			</view>
		</view>
		<view class="module">
			<view class="title">—— 异常情况 ——</view>
			<view class="detail">
				<view class="abnormity_grade">
					<text style="font-weight: 700;margin-right: 10rpx;">异常等级:</text>
					<text style="color:#EE9A00;">低分险</text>
				</view>
				<view class="abnormity_detail">
					<view class="abnormity_title" style="font-weight: 700;">异常详情:</view>
					<view class="abnormity_describe">出现踩蛋行为</view>
				</view>
			</view>
		</view>
		<view class="module">
			<view class="title">—— 监控视频 ——</view>
			<view class="vedio">
				<view class="iconfont icon-24gf-playCircle"></view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		onLoad(options) {
			console.log('optioms', options.item);
			uni.setNavigationBarTitle({
				title: options.item1 + '鸽笼'
			});
		}
	}
</script>
<style lang="scss" scoped>
	.page {
		width: 100%;
		height: 100%;
		.module {
			width: 100%;
			background-color: #FFFFFF;
			padding-bottom: 30rpx;
			margin-bottom: 20rpx;
			.title {
				padding-top: 30rpx;
				font-size: 36rpx;
				font-weight: 700;
				text-align: center;
			}
			.row {
				width: 100%;
				display: flex;
				align-items: center;
				justify-content: center;
				.data_item {
					padding-top: 15rpx;
					margin-top: 30rpx;
					width: 28%;
					height: 140rpx;
					text-align: center;
					// background-color: pink;
					border-radius: 20rpx;
					border: 6rpx solid #23b8ff;
					.item_title {
						margin-bottom: 15rpx;
						font-size: 34rpx;
						font-weight: 700;
						color: #23b8ff;
						
					}
					.item_data {
						font-size: 32rpx;
						font-weight: 700;
						color:  	#8C8C8C;
					}
					
				}
				&>.data_item:nth-child(1),
				&>.data_item:nth-child(2) {
					margin-right: 20rpx;
				}
				
			}
			
			.detail {
				padding-left: 30rpx;
				margin-top: 20rpx;
				.abnormity_grade {
					margin-bottom: 20rpx;
					font-size: 32rpx;
					letter-spacing: 1rpx;
					
				}
				.abnormity_detail {
					display: flex;
					font-size: 32rpx;
					.abnormity_title {
						margin-right: 20rpx;
					}
					.abnormity_describe {
						font-size: 30rpx;
						color: #636363;
					}
				}
			}
			.vedio {
				width: 80%;
				height: 350rpx;
				margin: 0 auto;
				margin-top: 20rpx;
				background: rgba(0, 0, 0, 0.3);
				position: relative; //后面要改
				.iconfont {
					width: 50rpx;
					height: 50rpx;
					position: absolute;
					top: 50%;
					left: 50%;
					margin-top: -25rpx;
					margin-left: -25rpx;
					font-size: 76rpx;
					color: #DC143C;
				}
			}
			
		}
	}
</style>
